package com.zwf.unifiedresponse.common;

import org.springframework.data.relational.core.sql.In;

public enum ResponseCodeEnum {

    SUCCESS(200, "操作成功"),
    ERROR_404(404, "路径不存在，请检查路径是否正确"),
    ERROR_401(401, "访问未经授权，请联系管理员"),
    ERROR_403(403, "访问被拒绝，请联系管理员"),
    ERROR_500(500, "服务器内部错误，请联系管理员");

    private Integer code;
    private String message;

    private ResponseCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
